<?php
// no direct access
defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.tooltip');
JHtml::_('behavior.formvalidation');

// Set toolbar items for the page
$edit		= JRequest::getVar('edit', true);
$text = !$edit ? JText::_( 'New' ) : JText::_( 'Edit' );
JToolBarHelper::title(   JText::_( 'Items' ).': <small><small>[ ' . $text.' ]</small></small>' );
JToolBarHelper::apply();
JToolBarHelper::save();
if (!$edit) {
	JToolBarHelper::cancel();
} else {
	// for existing items the button is renamed `close`
	JToolBarHelper::cancel( 'cancel', 'Close' );
}
?>

<script language="javascript" type="text/javascript">


Joomla.submitbutton = function(task)
{
	if (task == 'cancel' || document.formvalidator.isValid(document.id('adminForm'))) {
		Joomla.submitform(task, document.getElementById('adminForm'));
	}
}

</script>

	 	<form method="post" action="index.php" id="adminForm" name="adminForm">
	 	<div class="col <?php if(version_compare(JVERSION,'3.0','lt')):  ?>width-60  <?php endif; ?>span8 form-horizontal fltlft">
		  <fieldset class="adminform">
			<legend><?php echo JText::_( 'Details' ); ?></legend>
							
				<?php echo $this->form->getLabel('virtuemart_order_item_id'); ?>
				
				<?php echo $this->form->getInput('virtuemart_order_item_id');  ?>
					
				<?php echo $this->form->getLabel('product_discountedPriceWithoutTax'); ?>
				
				<?php echo $this->form->getInput('product_discountedPriceWithoutTax');  ?>
					
				<?php echo $this->form->getLabel('virtuemart_order_id'); ?>
				
				<?php echo $this->form->getInput('virtuemart_order_id');  ?>
					
				<?php echo $this->form->getLabel('virtuemart_vendor_id'); ?>
				
				<?php echo $this->form->getInput('virtuemart_vendor_id');  ?>
					
				<?php echo $this->form->getLabel('virtuemart_product_id'); ?>
				
				<?php echo $this->form->getInput('virtuemart_product_id');  ?>
					
				<?php echo $this->form->getLabel('order_item_sku'); ?>
				
				<?php echo $this->form->getInput('order_item_sku');  ?>
					
				<?php echo $this->form->getLabel('order_item_name'); ?>
				
				<?php echo $this->form->getInput('order_item_name');  ?>
					
				<?php echo $this->form->getLabel('product_quantity'); ?>
				
				<?php echo $this->form->getInput('product_quantity');  ?>
					
				<?php echo $this->form->getLabel('product_item_price'); ?>
				
				<?php echo $this->form->getInput('product_item_price');  ?>
					
				<?php echo $this->form->getLabel('product_priceWithoutTax'); ?>
				
				<?php echo $this->form->getInput('product_priceWithoutTax');  ?>
					
				<?php echo $this->form->getLabel('product_tax'); ?>
				
				<?php echo $this->form->getInput('product_tax');  ?>
					
				<?php echo $this->form->getLabel('product_basePriceWithTax'); ?>
				
				<?php echo $this->form->getInput('product_basePriceWithTax');  ?>
					
				<?php echo $this->form->getLabel('product_final_price'); ?>
				
				<?php echo $this->form->getInput('product_final_price');  ?>
					
				<?php echo $this->form->getLabel('product_subtotal_discount'); ?>
				
				<?php echo $this->form->getInput('product_subtotal_discount');  ?>
					
				<?php echo $this->form->getLabel('product_subtotal_with_tax'); ?>
				
				<?php echo $this->form->getInput('product_subtotal_with_tax');  ?>
					
				<?php echo $this->form->getLabel('order_item_currency'); ?>
				
				<?php echo $this->form->getInput('order_item_currency');  ?>
					
				<?php echo $this->form->getLabel('order_status'); ?>
				
				<?php echo $this->form->getInput('order_status');  ?>

				<div class="clr"></div>
					
					
				<?php echo $this->form->getLabel('product_attribute'); ?>
				
					
				<div class="clr"></div>
					
				<?php echo $this->form->getInput('product_attribute');  ?>
					
				<?php echo $this->form->getLabel('created_on'); ?>
				
				<?php echo $this->form->getInput('created_on');  ?>
					
				<?php echo $this->form->getLabel('modified_on'); ?>
				
				<?php echo $this->form->getInput('modified_on');  ?>
					
				<?php echo $this->form->getLabel('locked_on'); ?>
				
				<?php echo $this->form->getInput('locked_on');  ?>
					
				<?php echo $this->form->getLabel('locked_by'); ?>
				
				<?php echo $this->form->getInput('locked_by');  ?>
					
					
			
						
          </fieldset>                      
        </div>
        <div class="col <?php if(version_compare(JVERSION,'3.0','lt')):  ?>width-30  <?php endif; ?>span2 fltrgt">
		        
			<fieldset class="adminform">
				<legend><?php echo JText::_( 'Parameters' ); ?></legend>
							
				<?php echo $this->form->getLabel('created_by'); ?>
				
				<?php echo $this->form->getInput('created_by');  ?>
								
			</fieldset>
			        

        </div>                   
		<input type="hidden" name="option" value="com_cash_user" />
	    <input type="hidden" name="cid[]" value="<?php echo $this->item->virtuemart_order_item_id ?>" />
		<input type="hidden" name="task" value="" />
		<input type="hidden" name="view" value="items" />
		<?php echo JHTML::_( 'form.token' ); ?>
	</form>